yangan
2024-05-30 26cf5599ccc92203cb7313385c2bf3c26c42ac0c
pages/customer-page/addDailyPlan/addDailyPlan.vue
@@ -47,20 +47,19 @@
         <uni-table border stripe 
         emptyText="暂无更多数据">
               <uni-tr>
                  <uni-th align="left">订单编号</uni-th>
                  <uni-th align="left">类型</uni-th>
                  <uni-th align="left">产品名称</uni-th>
                   <uni-th align="left">场地</uni-th>
                  <uni-th align="left">客户</uni-th>
                   <uni-th align="center">产品名称</uni-th>
                  <uni-th align="center">类型</uni-th>
                   <uni-th align="center">仓库</uni-th>
               </uni-tr>
               <uni-tr v-for="(item, index) in subDataList[0].tmOrderList" :key="index">
               <uni-td>{{ item.orderCode }}</uni-td>
               <uni-tr v-for="(item, index) in subDataList" :key="index">
                  <uni-td align="center">
                     <view>{{ item.productName }}</view></uni-td>
               <uni-td>
                  <view class="name">{{ item.orderType }}</view>
               </uni-td>
               <uni-td align="center">{{ item.productName }}</uni-td>
                <uni-td align="center">{{ item.filedName }}</uni-td>
               <uni-td align="center">{{ item.customerName }}</uni-td>
                <uni-td align="center">
               <view>{{ item.bunkerName }}</view></uni-td>
            </uni-tr>
            </uni-table>
       </view>
@@ -109,6 +108,7 @@
            </view>
         </u-popup>
      </view> -->
   </view>
</template>
@@ -158,7 +158,7 @@
      methods: {
            //查询订单
            getDingdan(){
                    this.$reqGet('getAppOrderList')
                    this.$reqGet('getAppOrderList',{orderType:'外购'})
               .then(res => {
                  uni.hideLoading()
                  if (res.code == 0) {
@@ -178,22 +178,13 @@
         },
         confirmBuild() {
            let form = {
               carNo: uni.getStorageSync('carNo'),
               coalName: this.productName,
               deptId: this.deptId,  //部门Id
               deptName: this.deptName,  //部门名称
               filedId: this.filedId,  //煤场Id
               filedName: this.filedName,  //煤场名称
               orderType: "外购",
               sendDate: this.sendDate,  //发运时间
               xsUserId1: uni.getStorageSync('userId'),  //用户id
               isPretendDischar: 1,  //是否能装卸 1已经确认装卸 0不需要装卸
               isSpecial: 1,  //是否是特产品 1特殊产品 0不是特使产品
               customerId: this.customerId,
               customerName: this.customerName
              orderId:this.deptId,
              carNum:this.value,
              sendDate:this.sendDate,
              sendSign:0,
            }
            this.buildLoading = true
            this.$reqPost('saveDeliveryNote', form, 'json').then(res => {
            this.$reqPost('addDeliveryPlan', form, 'json').then(res => {
               this.buildLoading = false
               if (res.code == 0) {
                  this.$u.toast('创建成功')