瀏覽代碼

Merge branch 'pre-release' of http://git.chelingzhu.com/jianguan-web/qpls-md-html into develop_yh23

# Conflicts:
#	public/version.json
lilei 1 年之前
父節點
當前提交
95c2c0d755

二進制
public/templ/采购退货申请单(其它)产品明细模板.xlsx


+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1090513318550
+  "version": 1690525618489
 }

+ 5 - 3
src/views/purchasingManagement/purchaseReturnApplyForm/chooseImportModal.vue

@@ -99,7 +99,7 @@ export default {
         { title: '单位', dataIndex: 'product.unit', align: 'center', width: '10%', customRender: function (text) { return text || '--' } },
         { title: '申请退货数量', dataIndex: 'exprotQty', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
       ]
-      if(this.paramsData.goodFlag != 1){
+      if(this.paramsData&&this.paramsData.goodFlag != 1){
         arr.push({ title: '退货原因', dataIndex: 'returnReason', width: '14%', align: 'center', customRender: function (text) { return text || '--' } })
       }
       arr.push({ title: '备注', dataIndex: 'returnReasonRemarks', width: '15%', align: 'center', customRender: function (text) { return text || '--' } })
@@ -113,7 +113,7 @@ export default {
         { title: '单位', dataIndex: 'product.unit', align: 'center', width: '8%', customRender: function (text) { return text || '--' } },
         { title: '申请退货数量', dataIndex: 'exprotQty', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
       ]
-      if(this.paramsData.goodFlag != 1){
+      if(this.paramsData&&this.paramsData.goodFlag != 1){
         arr.push({ title: '退货原因', dataIndex: 'returnReason', width: '10%', align: 'center', customRender: function (text) { return text || '--' } })
       }
       arr.push({ title: '备注', dataIndex: 'returnReasonRemarks', width: '15%', align: 'center', customRender: function (text) { return text || '--' } })
@@ -125,7 +125,9 @@ export default {
     getData () {
       const _this = this
       this.loading = true
-      purchaseReturnApplyReadExcel(this.paramsData).then(res => {
+      const params = JSON.parse(JSON.stringify(this.paramsData))
+      delete params.goodFlag
+      purchaseReturnApplyReadExcel(params).then(res => {
         this.loading = false
         if (res.status == 200) {
           if (res.data.successList && res.data.successList.length > 0) {

+ 2 - 2
src/views/purchasingManagement/purchaseReturnApplyForm/edit.vue

@@ -342,7 +342,7 @@ export default {
       const arr = [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
         { title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'name', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品名称', dataIndex: 'name', width: this.editGoodFlag ? '20%':'30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '20%', align: 'center' },
         { title: '单位', dataIndex: 'unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '申请退货数量', scopedSlots: { customRender: 'returnQty' }, width: '10%', align: 'center' }
@@ -357,7 +357,7 @@ export default {
       const arr = [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
         { title: '产品编码', dataIndex: 'product.code', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'product.name', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品名称', dataIndex: 'product.name', width: this.editGoodFlag ? '20%':'30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '17%', align: 'center' },
         { title: '单位', dataIndex: 'product.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '申请退货数量', scopedSlots: { customRender: 'qty' }, width: '10%', align: 'center' }

+ 1 - 1
src/views/purchasingManagement/purchaseReturnApplyForm/importGuideModal.vue

@@ -15,7 +15,7 @@
             <span>1</span>准备导入
           </div>
           <ul>
-            <li>1) 导入的Excel文件中必须包含名为“产品编码”、“申请退货数量”、“退货原因”、“备注”的列,且名称必须相同,其它列可自定义,不影响数据导入</li>
+            <li>1) 导入的Excel文件中必须包含名为“产品编码”、“申请退货数量”、{{goodFlag==1?'':'“退货原因”、'}}“备注”的列,且名称必须相同,其它列可自定义,不影响数据导入</li>
             <li>2) 如果导入的产品已经存在,则不会导入该行</li>
             <li>
               <a :href="filePath" style="margin: 5px 0 0;display: block;">