Просмотр исходного кода

采购退货单新增时,供应商收货地址从供应商里面自动带入,可编辑
通过询价单生成合同时,默认无法显示合同分类,必须要变更一下合同类型后,才能显示。
合同收付款列表,默认增加收付款三种类型
从配料计划来的采购计划,未默认显示为生产性
从配料计划来的采购计划,分类名称未带过来
新增销售订单时:
总重量、工艺路线等数据没有带过来
报价单生成合同时,合同分类默认无数据,选择合同类型后才会显示合同分类数据;
商机生成报价单时:
报价单产品列表:质保期单位变成了数字;
工艺路线未带过来;
报价单-销售主管审批节点付款方式没显示;
工艺路线、总重没显示;
报价单列表页面有税率有null值;
商机流程,商机客户代号没有了;
技术员节点计算总重有bug,保留两位小数;
商机列表、详情、流程页面有null值

Z 2 лет назад
Родитель
Сommit
b81c166d5a
20 измененных файлов с 113 добавлено и 60 удалено
  1. BIN
      dist.rar
  2. 1 0
      src/views/bpm/handleTask/components/businessOpportunity/addOpportunityDialog.vue
  3. 17 14
      src/views/bpm/handleTask/components/businessOpportunity/opportunityDetailDialog.vue
  4. 34 4
      src/views/bpm/handleTask/components/businessOpportunity/submit.vue
  5. 1 0
      src/views/bpm/handleTask/components/contractBook/addDialog.vue
  6. 3 2
      src/views/bpm/handleTask/components/contractBook/detailDialog.vue
  7. 24 14
      src/views/bpm/handleTask/components/contractBook/inventoryTable.vue
  8. 6 4
      src/views/bpm/handleTask/components/contractBook/inventoryTabledetail.vue
  9. 1 0
      src/views/bpm/handleTask/components/contractBook/submit.vue
  10. 2 2
      src/views/bpm/handleTask/components/purchaseOrder/detailDialog.vue
  11. 4 4
      src/views/bpm/handleTask/components/purchaseOrder/returnGoods/addReturnGoodsDialog.vue
  12. 2 2
      src/views/bpm/handleTask/components/purchaseOrder/returnGoods/submit.vue
  13. 1 0
      src/views/bpm/handleTask/components/quotation/addDialog.vue
  14. 6 4
      src/views/bpm/handleTask/components/quotation/detailDialog.vue
  15. 2 2
      src/views/bpm/handleTask/components/saleOrder/detailDialog.vue
  16. 3 2
      src/views/bpm/handleTask/components/saleOrder/inventoryTable.vue
  17. 2 2
      src/views/bpm/handleTask/components/saleOrder/invoice/addInvoiceDialog.vue
  18. 2 2
      src/views/bpm/handleTask/components/saleOrder/invoice/detailDialog.vue
  19. 1 1
      src/views/bpm/handleTask/components/saleOrder/invoice/product-list.vue
  20. 1 1
      src/views/bpm/handleTask/components/saleOrder/returnGoods/detailDialog.vue

+ 1 - 0
src/views/bpm/handleTask/components/businessOpportunity/addOpportunityDialog.vue

@@ -108,6 +108,7 @@
     </el-form>
     </el-form>
     <headerTitle title="产品清单"></headerTitle>
     <headerTitle title="产品清单"></headerTitle>
     <inventoryTable
     <inventoryTable
+      :isCustomerMark="false"
       ref="inventoryTable"
       ref="inventoryTable"
       :isDeliveryDeadline="false"
       :isDeliveryDeadline="false"
       :isGuaranteePeriod="false"
       :isGuaranteePeriod="false"

+ 17 - 14
src/views/bpm/handleTask/components/businessOpportunity/opportunityDetailDialog.vue

@@ -30,15 +30,15 @@
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
         <el-col :span="8">
         <el-col :span="8">
-          <el-form-item label="赢单率:" prop="winRate">
-            {{ detailData.winRate + '%' }}
-          </el-form-item>
-        </el-col>
-        <el-col :span="8">
-          <el-form-item label="预算:" prop="budget">
-            {{ detailData.budget + '万元' }}
-          </el-form-item>
-        </el-col>
+            <el-form-item label="赢单率:" prop="winRate">
+              {{detailData.winRate? detailData.winRate + '%' : '' }}
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="预算:" prop="budget">
+              {{ detailData.budget? detailData.budget + '万元':'' }}
+            </el-form-item>
+          </el-col>
         <el-col :span="8">
         <el-col :span="8">
           <el-form-item label="预计结单日期:" prop="expectedClosingDate">
           <el-form-item label="预计结单日期:" prop="expectedClosingDate">
             {{ detailData.expectedClosingDate }}
             {{ detailData.expectedClosingDate }}
@@ -76,18 +76,20 @@
 
 
     <inventoryTable
     <inventoryTable
     pageName="businessOpportunity"
     pageName="businessOpportunity"
-      v-if="['productionSupervisorApprove1','technicianApprove','techLeaderApprove','productionSupervisorApprove2'].includes(taskDefinitionKey)"
+      v-if="['productionSupervisorApprove1','technicianApprove','techLeaderApprove','productionSupervisorApprove2','salesManagerApprove'].includes(taskDefinitionKey)"
       ref="inventoryTable"
       ref="inventoryTable"
       :taskDefinitionKey=taskDefinitionKey
       :taskDefinitionKey=taskDefinitionKey
       :isDeliveryDeadline="false"
       :isDeliveryDeadline="false"
       :isGuaranteePeriod="false"
       :isGuaranteePeriod="false"
+      :isCustomerMark="false"
     ></inventoryTable>
     ></inventoryTable>
 
 
     <inventoryTabledetail
     <inventoryTabledetail
-     v-if="!['productionSupervisorApprove1','technicianApprove','techLeaderApprove','productionSupervisorApprove2'].includes(taskDefinitionKey)"
+     v-if="!['productionSupervisorApprove1','technicianApprove','techLeaderApprove','productionSupervisorApprove2','salesManagerApprove'].includes(taskDefinitionKey)"
       ref="inventoryTabledetailRef"
       ref="inventoryTabledetailRef"
       :isDeliveryDeadline="false"
       :isDeliveryDeadline="false"
       :isGuaranteePeriod="false"
       :isGuaranteePeriod="false"
+      :isCustomerMark="false"
     ></inventoryTabledetail>
     ></inventoryTabledetail>
     <!-- <el-card
     <!-- <el-card
       shadow="never"
       shadow="never"
@@ -274,7 +276,7 @@
             label: '销售总金额',
             label: '销售总金额',
             slot: 'totalPrice',
             slot: 'totalPrice',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.totalPrice + '元';
+              return _row.totalPrice? _row.totalPrice + '元':'';
             }
             }
           },
           },
           {
           {
@@ -295,7 +297,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           // {
           // {
@@ -328,7 +330,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {
@@ -342,6 +344,7 @@
     },
     },
     created() {
     created() {
       this.getDetailData(this.businessId);
       this.getDetailData(this.businessId);
+      console.log(this.taskDefinitionKey,'11111111111111111');
     },
     },
     methods: {
     methods: {
       downloadFile(file) {
       downloadFile(file) {

+ 34 - 4
src/views/bpm/handleTask/components/businessOpportunity/submit.vue

@@ -181,6 +181,7 @@
               isProduceDeliveryDeadline = false;
               isProduceDeliveryDeadline = false;
             }
             }
             return {
             return {
+              ...item,
               id: item.id,
               id: item.id,
               produceDeliveryDeadline: item.produceDeliveryDeadline,
               produceDeliveryDeadline: item.produceDeliveryDeadline,
               technicalAnswerId: this.form.technicianId,
               technicalAnswerId: this.form.technicianId,
@@ -203,10 +204,11 @@
           await updateProduct(arr);
           await updateProduct(arr);
         }
         }
         //技术员修改
         //技术员修改
-        if (this.taskDefinitionKey === 'technicianApprove' && status === 1) {
+        if ((this.taskDefinitionKey === 'technicianApprove'||this.taskDefinitionKey === 'techLeaderApprove') && status === 1) {
           let data = await this.getTableValue();
           let data = await this.getTableValue();
           let arr = data.map((item) => {
           let arr = data.map((item) => {
             return {
             return {
+              ...item,
               id: item.id,
               id: item.id,
               technicalDrawings: item.technicalDrawings || [],
               technicalDrawings: item.technicalDrawings || [],
               industryArtFiles: item.industryArtFiles || [],
               industryArtFiles: item.industryArtFiles || [],
@@ -225,13 +227,41 @@
           }
           }
           await updateProduct(arr);
           await updateProduct(arr);
         }
         }
-        //销售员补充
-        if (this.taskDefinitionKey === 'salesmanApprove' && status === 1) {
+        //销售员补充和销售主管审批
+        if ((this.taskDefinitionKey === 'salesmanApprove'||this.taskDefinitionKey === 'salesManagerApprove') && status === 1) {
           let arr = await this.getTableValue();
           let arr = await this.getTableValue();
+          let singlePrice = true;
+          let totalCount = true;
+          let arrList = arr.map((item) => {
+            if (!item.singlePrice) {
+              singlePrice = false;
+            }
+            if (!item.totalCount) {
+              totalCount = false;
+            }
+            return {
+              ...item,
+              id: item.id,
+              singlePrice:item.singlePrice,
+              totalCount:item.totalCount,
+              totalPrice:item.totalPrice
+            };
+          });
+         if(this.taskDefinitionKey === 'salesmanApprove'){
+         if (!singlePrice) {
+            this.$message.warning(`请输入单价`);
+            return;
+          }
+          if (!totalCount) {
+            this.$message.warning(`请输入数量`);
+            return;
+          }
+}
+          
           if (!arr) {
           if (!arr) {
             return;
             return;
           }
           }
-          let data = await UpdateInformation(arr);
+          let data = await updateProduct(arrList);
           if (data.code != '0') {
           if (data.code != '0') {
             return;
             return;
           }
           }

+ 1 - 0
src/views/bpm/handleTask/components/contractBook/addDialog.vue

@@ -383,6 +383,7 @@
         :contractStartDate="this.form.contractStartDate"
         :contractStartDate="this.form.contractStartDate"
         :isDiscountTotalPrice="true"
         :isDiscountTotalPrice="true"
         :contractBookType="form.type"
         :contractBookType="form.type"
+        :isCustomerMark="false"
       ></inventoryTable>
       ></inventoryTable>
       <headerTitle
       <headerTitle
         :title="form.type == '2' ? '付款方式' : '收款方式'"
         :title="form.type == '2' ? '付款方式' : '收款方式'"

+ 3 - 2
src/views/bpm/handleTask/components/contractBook/detailDialog.vue

@@ -203,6 +203,7 @@
       ref="inventoryTabledetailRef"
       ref="inventoryTabledetailRef"
       :isDiscountTotalPrice="true"
       :isDiscountTotalPrice="true"
       :contractBookType="form.type"
       :contractBookType="form.type"
+      :isCustomerMark="false"
     >
     >
     </inventoryTabledetail>
     </inventoryTabledetail>
 
 
@@ -377,7 +378,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           // {
           // {
@@ -411,7 +412,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {

+ 24 - 14
src/views/bpm/handleTask/components/contractBook/inventoryTable.vue

@@ -87,7 +87,7 @@
           style="margin-bottom: 20px"
           style="margin-bottom: 20px"
           :prop="'datasource.' + scope.$index + '.totalCount'"
           :prop="'datasource.' + scope.$index + '.totalCount'"
           :rules="{
           :rules="{
-            required: pageName == 'businessOpportunity' ? false : true,
+            required: (pageName == 'businessOpportunity'||taskDefinitionKey=='salesManagerApprove') ? false : true,
             pattern: numberReg,
             pattern: numberReg,
             message: '请输入数字',
             message: '请输入数字',
             trigger: 'blur'
             trigger: 'blur'
@@ -96,7 +96,7 @@
           <el-input
           <el-input
             v-model="scope.row.totalCount"
             v-model="scope.row.totalCount"
             placeholder="请输入"
             placeholder="请输入"
-            :disabled="!!taskDefinitionKey"
+            :disabled="!!taskDefinitionKey&&taskDefinitionKey!=='salesManagerApprove'"
             @input="getTotalPrice(scope.row)"
             @input="getTotalPrice(scope.row)"
           ></el-input>
           ></el-input>
         </el-form-item>
         </el-form-item>
@@ -182,10 +182,11 @@
           </div>
           </div>
           <div class="borderrightnone">
           <div class="borderrightnone">
             <DictSelection
             <DictSelection
-              dictName="保期单位"
+              dictName="保期单位"
               clearable
               clearable
               :disabled="!!taskDefinitionKey"
               :disabled="!!taskDefinitionKey"
               v-model="scope.row.guaranteePeriodUnitCode"
               v-model="scope.row.guaranteePeriodUnitCode"
+              @itemChange="(data)=>chaengUnitCode(data,scope.row, scope.$index)"
               @change="
               @change="
                 setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
                 setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
               "
               "
@@ -224,7 +225,7 @@
           style="margin-bottom: 20px"
           style="margin-bottom: 20px"
           :prop="'datasource.' + scope.$index + '.singlePrice'"
           :prop="'datasource.' + scope.$index + '.singlePrice'"
           :rules="{
           :rules="{
-            required: pageName == 'businessOpportunity' ? false : true,
+            required: (pageName == 'businessOpportunity'||taskDefinitionKey=='salesManagerApprove') ? false : true,
             pattern: numberReg,
             pattern: numberReg,
             message: '请输入正确的单价',
             message: '请输入正确的单价',
             trigger: 'change'
             trigger: 'change'
@@ -234,7 +235,7 @@
             v-model="scope.row.singlePrice"
             v-model="scope.row.singlePrice"
             placeholder="请输入"
             placeholder="请输入"
             @input="getTotalPrice"
             @input="getTotalPrice"
-            :disabled="!!taskDefinitionKey"
+            :disabled="!!taskDefinitionKey&&taskDefinitionKey!=='salesManagerApprove'"
           >
           >
             <template slot="append">元</template>
             <template slot="append">元</template>
           </el-input>
           </el-input>
@@ -244,7 +245,7 @@
         v-slot:headerSinglePrice="{ column }"
         v-slot:headerSinglePrice="{ column }"
         v-if="pageName != 'businessOpportunity' || isSinglePrice"
         v-if="pageName != 'businessOpportunity' || isSinglePrice"
       >
       >
-        <span class="is-required">{{ column.label }}</span>
+        <span :class="{'is-required':taskDefinitionKey!=='salesManagerApprove'}">{{ column.label }}</span>
       </template>
       </template>
 
 
       <template v-slot:technicalAnswerName="{ row, $index }">
       <template v-slot:technicalAnswerName="{ row, $index }">
@@ -496,7 +497,7 @@
         type: Boolean
         type: Boolean
       },
       },
       isCustomerMark: {
       isCustomerMark: {
-        default: false,
+        default: true,
         type: Boolean
         type: Boolean
       },
       },
       isSinglePrice: {
       isSinglePrice: {
@@ -578,7 +579,7 @@
             prop: 'customerMark',
             prop: 'customerMark',
             label: '客户代号',
             label: '客户代号',
             slot: 'customerMark',
             slot: 'customerMark',
-            // show: this.isCustomerMark
+            show: this.isCustomerMark
           },
           },
           {
           {
             width: 160,
             width: 160,
@@ -789,6 +790,9 @@
         this.$refs.table.reRenderTable();
         this.$refs.table.reRenderTable();
       }
       }
     },
     },
+    created(){
+      console.log('222222222',this.taskDefinitionKey,(this.pageName == 'businessOpportunity'||this.taskDefinitionKey=='salesManagerApprove') ? false : true);
+    },
     methods: {
     methods: {
       openVersion(index) {
       openVersion(index) {
         this.$refs.versionRefs.open(index);
         this.$refs.versionRefs.open(index);
@@ -802,6 +806,9 @@
         );
         );
         this.$set(this.form.datasource[index], 'technologyRouteId', data.id);
         this.$set(this.form.datasource[index], 'technologyRouteId', data.id);
       },
       },
+      chaengUnitCode(data,row, index){
+        console.log(data,row, index);
+      },
       setDeliveryDays(row, index, type, isAll) {
       setDeliveryDays(row, index, type, isAll) {
         if (isAll) {
         if (isAll) {
           this.form.datasource.forEach((item, i) => {
           this.form.datasource.forEach((item, i) => {
@@ -839,6 +846,7 @@
           let guaranteePeriodUnitName = this.guaranteePeriodUnit(
           let guaranteePeriodUnitName = this.guaranteePeriodUnit(
             row.guaranteePeriodUnitCode
             row.guaranteePeriodUnitCode
           );
           );
+          console.log(guaranteePeriodUnitName,'===================');
           this.$set(
           this.$set(
             this.form.datasource[index],
             this.form.datasource[index],
             'guaranteePeriodDeadline',
             'guaranteePeriodDeadline',
@@ -858,8 +866,6 @@
           : 'second';
           : 'second';
       },
       },
       setDay(addDay, dateType = 'day') {
       setDay(addDay, dateType = 'day') {
-        console.log(addDay, 'addDay');
-        console.log(dateType, 'dateType');
         return dayjs(this.contractStartDate || new Date())
         return dayjs(this.contractStartDate || new Date())
           .add(addDay, dateType)
           .add(addDay, dateType)
           .format('YYYY-MM-DD');
           .format('YYYY-MM-DD');
@@ -875,7 +881,7 @@
               (v.totalCount * v.singlePrice)?.toFixed(2)) ||
               (v.totalCount * v.singlePrice)?.toFixed(2)) ||
             null;
             null;
           v.guaranteePeriodUnitName = this.getDictValue(
           v.guaranteePeriodUnitName = this.getDictValue(
-            '保期单位',
+            '保期单位',
             v.guaranteePeriodUnitCode
             v.guaranteePeriodUnitCode
           );
           );
           v.technicalDrawings = v.technicalDrawings ? v.technicalDrawings : [];
           v.technicalDrawings = v.technicalDrawings ? v.technicalDrawings : [];
@@ -884,6 +890,7 @@
 
 
           v.otherFiles = v.otherFiles || [];
           v.otherFiles = v.otherFiles || [];
         });
         });
+        console.log(comitDatasource,'comitDatasourcecomitDatasourcecomitDatasource');
         return comitDatasource;
         return comitDatasource;
       },
       },
       getPrice() {
       getPrice() {
@@ -927,7 +934,8 @@
           [];
           [];
         if (productList) {
         if (productList) {
           productList.forEach((item) => {
           productList.forEach((item) => {
-            item.guaranteePeriodUnitCode = item.guaranteePeriodUnitCode + '';
+            item.guaranteePeriodUnitCode = item.guaranteePeriodUnitCode * 1;
+            //item.guaranteePeriodUnitCode
             // if (item.deliveryDays) {
             // if (item.deliveryDays) {
             //   item['deliveryDeadline'] =
             //   item['deliveryDeadline'] =
             //     item['deliveryDeadline'] || this.setDay(item.deliveryDays);
             //     item['deliveryDeadline'] || this.setDay(item.deliveryDays);
@@ -951,10 +959,12 @@
         }
         }
       },
       },
       //计算单重
       //计算单重
-      singleWeightChange(row) {
+      singleWeightChange(row={}) {
         if (row && row.singleWeight && row.totalCount) {
         if (row && row.singleWeight && row.totalCount) {
-          row.totalWeight = row.singleWeight * row.totalCount || 0;
+         return row.totalWeight = (row.singleWeight * row.totalCount).toFixed(2);
         }
         }
+        return row.totalWeight = 0
+
       },
       },
       //选择产品
       //选择产品
       handParent(row, index) {
       handParent(row, index) {

+ 6 - 4
src/views/bpm/handleTask/components/contractBook/inventoryTabledetail.vue

@@ -91,7 +91,7 @@
         type: Boolean
         type: Boolean
       },
       },
       isCustomerMark: {
       isCustomerMark: {
-        default: false,
+        default: true,
         type: Boolean
         type: Boolean
       },
       },
       isSinglePrice: {
       isSinglePrice: {
@@ -157,7 +157,7 @@
             prop: 'customerMark',
             prop: 'customerMark',
             label: '客户代号',
             label: '客户代号',
             slot: 'customerMark',
             slot: 'customerMark',
-            // show: this.isCustomerMark
+            show: this.isCustomerMark
           },
           },
           {
           {
             width: 160,
             width: 160,
@@ -241,7 +241,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriodUnitCode||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {
@@ -313,7 +313,9 @@
       };
       };
     },
     },
     computed: {},
     computed: {},
-
+    created(){
+      console.log('333333333');
+    },
     methods: {
     methods: {
       //修改回显
       //修改回显
       putTableValue(data) {
       putTableValue(data) {

+ 1 - 0
src/views/bpm/handleTask/components/contractBook/submit.vue

@@ -100,6 +100,7 @@
       };
       };
     },
     },
     created() {
     created() {
+
       this.userOptions = [];
       this.userOptions = [];
       listAllUserBind().then((data) => {
       listAllUserBind().then((data) => {
         this.userOptions.push(...data);
         this.userOptions.push(...data);

+ 2 - 2
src/views/bpm/handleTask/components/purchaseOrder/detailDialog.vue

@@ -413,7 +413,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {
@@ -440,7 +440,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {

+ 4 - 4
src/views/bpm/handleTask/components/purchaseOrder/returnGoods/addReturnGoodsDialog.vue

@@ -103,7 +103,7 @@
   import fileUpload from '@/components/upload/fileUpload';
   import fileUpload from '@/components/upload/fileUpload';
   import dictMixins from '@/mixins/dictMixins';
   import dictMixins from '@/mixins/dictMixins';
   import { getReturnSaleOrderrecordDetail } from '@/api/bpm/components/purchasingManage/returnGoods';
   import { getReturnSaleOrderrecordDetail } from '@/api/bpm/components/purchasingManage/returnGoods';
-  import { getReceiveSaleOrderrecordDetail } from '@/api/bpm/components/purchasingManage/purchaseorderreceive';
+  // import { getReceiveSaleOrderrecordDetail } from '@/api/bpm/components/purchasingManage/purchaseorderreceive';
   import inventoryTable from './inventoryTable.vue';
   import inventoryTable from './inventoryTable.vue';
   import sendListDialog from './sendListDialog.vue';
   import sendListDialog from './sendListDialog.vue';
   import { copyObj } from '@/utils/util';
   import { copyObj } from '@/utils/util';
@@ -183,7 +183,7 @@
     },
     },
     created() {
     created() {
       this.$store.commit('returnGoods/clearUserData');
       this.$store.commit('returnGoods/clearUserData');
-      this.getReturnSaleOrderrecordDetail(this.businessId);
+      this.getReturnSaleOrderrecordDetail1(this.businessId);
     },
     },
     methods: {
     methods: {
       //删除产品
       //删除产品
@@ -198,7 +198,7 @@
 
 
       //选择订单回调
       //选择订单回调
       changeOrder(obj) {
       changeOrder(obj) {
-        this.getSendSaleOrderDetail(obj.id);
+       // this.getSendSaleOrderDetail(obj.id);
       },
       },
 
 
       //发货单详情
       //发货单详情
@@ -218,7 +218,7 @@
       },
       },
 
 
       //获取退货单详情
       //获取退货单详情
-      async getReturnSaleOrderrecordDetail(id) {
+      async getReturnSaleOrderrecordDetail1(id) {
         this.loading = true;
         this.loading = true;
         const data = await getReturnSaleOrderrecordDetail(id);
         const data = await getReturnSaleOrderrecordDetail(id);
         this.loading = false;
         this.loading = false;

+ 2 - 2
src/views/bpm/handleTask/components/purchaseOrder/returnGoods/submit.vue

@@ -44,7 +44,7 @@
         type="danger"
         type="danger"
         size="mini"
         size="mini"
         @click="handleAudit(0)"
         @click="handleAudit(0)"
-        v-if="!['purchase_return_approve'].includes(taskDefinitionKey)"
+        v-if="['storemanApprove'].includes(taskDefinitionKey)"
         >驳回
         >驳回
       </el-button>
       </el-button>
 
 
@@ -121,7 +121,7 @@
     },
     },
     async created() {
     async created() {
       if (this.taskDefinitionKey == 'storemanApprove') {
       if (this.taskDefinitionKey == 'storemanApprove') {
-        let data = await getReturnSaleOrderrecordDetail(this.businessId);
+        let data = await getReturnSaleOrderrecordDetail(this.businessId); 
         try {
         try {
           this.outInData = await getOutInBySourceBizNo(data.returnNo);
           this.outInData = await getOutInBySourceBizNo(data.returnNo);
         } catch (error) {
         } catch (error) {

+ 1 - 0
src/views/bpm/handleTask/components/quotation/addDialog.vue

@@ -174,6 +174,7 @@
       <headerTitle title="报价单产品清单"></headerTitle>
       <headerTitle title="报价单产品清单"></headerTitle>
       <inventoryTable
       <inventoryTable
         ref="inventoryTable"
         ref="inventoryTable"
+        :isCustomerMark="false"
         :isDeliveryDeadline="false"
         :isDeliveryDeadline="false"
         :isGuaranteePeriod="false"
         :isGuaranteePeriod="false"
       ></inventoryTable>
       ></inventoryTable>

+ 6 - 4
src/views/bpm/handleTask/components/quotation/detailDialog.vue

@@ -140,11 +140,11 @@
         </el-col>
         </el-col>
         <el-col :span="6">
         <el-col :span="6">
           <el-form-item
           <el-form-item
-            label="付款方式"
-            prop="payWay"
+            label="结算方式"
+            prop="settlementMode"
             style="margin-bottom: 22px"
             style="margin-bottom: 22px"
           >
           >
-            {{ form.payWayName }}
+            {{ form.settlementModeName }}
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
         <el-col :span="6">
         <el-col :span="6">
@@ -163,11 +163,13 @@
 
 
     <inventoryTable
     <inventoryTable
       ref="inventoryTable"
       ref="inventoryTable"
+      :isCustomerMark="false"
       :isDeliveryDeadline="false"
       :isDeliveryDeadline="false"
       :isGuaranteePeriod="false"
       :isGuaranteePeriod="false"
       v-if="taskDefinitionKey === 'technicianApprove'"
       v-if="taskDefinitionKey === 'technicianApprove'"
     ></inventoryTable>
     ></inventoryTable>
     <inventoryTabledetail
     <inventoryTabledetail
+    :isCustomerMark="false"
       v-if="taskDefinitionKey != 'technicianApprove'"
       v-if="taskDefinitionKey != 'technicianApprove'"
       ref="inventoryTabledetailRef"
       ref="inventoryTabledetailRef"
     ></inventoryTabledetail>
     ></inventoryTabledetail>
@@ -292,7 +294,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           // {
           // {

+ 2 - 2
src/views/bpm/handleTask/components/saleOrder/detailDialog.vue

@@ -436,7 +436,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           // {
           // {
@@ -463,7 +463,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {

+ 3 - 2
src/views/bpm/handleTask/components/saleOrder/inventoryTable.vue

@@ -465,7 +465,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {
@@ -504,7 +504,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {
@@ -719,6 +719,7 @@
           let guaranteePeriodUnitName = this.guaranteePeriodUnit(
           let guaranteePeriodUnitName = this.guaranteePeriodUnit(
             row.guaranteePeriodUnitCode
             row.guaranteePeriodUnitCode
           );
           );
+          console.log(guaranteePeriodUnitName,'=======================');
           this.$set(
           this.$set(
             this.form.datasource[index],
             this.form.datasource[index],
             'guaranteePeriodDeadline',
             'guaranteePeriodDeadline',

+ 2 - 2
src/views/bpm/handleTask/components/saleOrder/invoice/addInvoiceDialog.vue

@@ -327,7 +327,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           // {
           // {
@@ -354,7 +354,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {

+ 2 - 2
src/views/bpm/handleTask/components/saleOrder/invoice/detailDialog.vue

@@ -323,7 +323,7 @@
             label: '质保期',
             label: '质保期',
             slot: 'guaranteePeriod',
             slot: 'guaranteePeriod',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           // {
           // {
@@ -350,7 +350,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {

+ 1 - 1
src/views/bpm/handleTask/components/saleOrder/invoice/product-list.vue

@@ -38,7 +38,7 @@
 <script>
 <script>
   import { getpurchaseorderDetail } from '@/api/bpm/components/purchasingManage/purchaseOrder';
   import { getpurchaseorderDetail } from '@/api/bpm/components/purchasingManage/purchaseOrder';
   import { getSendSaleOrderrecordDetail,getSaleOrderDetail } from '@/api/bpm/components/saleManage/saleorder';
   import { getSendSaleOrderrecordDetail,getSaleOrderDetail } from '@/api/bpm/components/saleManage/saleorder';
-  // import { getReceiveSaleOrderrecordDetail } from '@/api/purchasingManage/purchaseorderreceive';
+   import { getReceiveSaleOrderrecordDetail } from '@/api/bpm/components/purchasingManage/purchaseorderreceive';
 
 
   export default {
   export default {
     props: {
     props: {

+ 1 - 1
src/views/bpm/handleTask/components/saleOrder/returnGoods/detailDialog.vue

@@ -332,7 +332,7 @@
             label: '技术图纸',
             label: '技术图纸',
             slot: 'technicalDrawings',
             slot: 'technicalDrawings',
             formatter: (_row, _column, cellValue) => {
             formatter: (_row, _column, cellValue) => {
-              return _row.guaranteePeriod + _row.guaranteePeriodUnitName;
+              return (_row.guaranteePeriod||'') + _row.guaranteePeriodUnitName;
             }
             }
           },
           },
           {
           {