chenrui před 2 roky
rodič
revize
2ceb766d63

binární
public/templ/销售导入产品模板.xlsx


+ 1 - 1
src/views/salesManagement/salesQuery/importGuideModal.vue

@@ -15,7 +15,7 @@
             <span>1</span>准备导入
           </div>
           <ul>
-            <li>1) 导入的Excel文件中必须包含名为“产品编码”、“数量”、“出库仓库”的列,且名称必须相同(其中出库仓库必选)</li>
+            <li>1) 导入的Excel文件中必须包含名为“产品编码”、“数量”、“出库仓库”的列,且名称必须相同</li>
             <li>2) 除了“产品编码”、“数量”、“出库仓库”三列,其他列可自定义,不影响数据导入</li>
             <li>3) 如果导入的产品已经存在,则不会导入该行</li>
             <li>

+ 7 - 6
src/views/salesManagement/salesQuery/list.vue

@@ -162,11 +162,9 @@
         </template>
         <!-- 出库仓库 -->
         <template slot="warehouseBox" slot-scope="text, record">
-          <a-tooltip placement="right" v-if="record.warehouseNameSet && record.warehouseNameSet.length>0">
+          <a-tooltip placement="right" v-if="record.warehouseNameSet && record.warehouseNameSet.length>0" trigger="click" :defaultVisible="false">
             <template slot="title">
-              <div class="warehouse_box1">
-                <span v-for="(item,i) in record.warehouseNameSet" :key="i">{{ item }},</span>
-              </div>
+              <span v-for="(item,i) in record.warehouseNameSet" :key="i">{{ item }},</span>
             </template>
             <div class="warehouse_box">
               <span v-for="(item,i) in record.warehouseNameSet" :key="i">{{ item }}</span>
@@ -625,11 +623,14 @@ export default {
         text-overflow: ellipsis;
       }
       .warehouse_box>span::after{
-        content:','
+        content:',';
       }
       .warehouse_box>span:last-child::after{
-        content:''
+        content:'';
       }
     }
   }
+ /deep/.ant-tooltip-inner{
+    color:red !important;
+  }
 </style>

+ 2 - 2
src/views/salesManagement/salesQuery/setPriceModal.vue

@@ -16,10 +16,10 @@
           <div style="margin-bottom:10px;font-weight:bold;">销售单部分产品价格发生变更,请确认</div>
           <a-radio-group v-model="priceVal">
             <a-radio value="0" :style="radioStyle">
-              以订单当前价格为准,总金额:{{ totalRealAmount }}元
+              以【当前】价格为准,总金额:{{ totalRealAmount }}元
             </a-radio>
             <a-radio value="1" :style="radioStyle">
-              以OCS最新价格为准,总金额:{{ totalAmount }}元
+              以【最新】价格为准,总金额:{{ totalAmount }}元
             </a-radio>
           </a-radio-group>
         </div>

+ 9 - 6
src/views/salesManagement/waitDispatch/edit.vue

@@ -113,6 +113,7 @@ import { salesDetailBySn } from '@/api/sales'
 import { salesDetailDispatchByOneKey, insertBatchOfWaitDispatch, salesDetailUpdateCancelQty } from '@/api/salesDetail'
 import { deleteBatch, pushDown, waitDispatchDetailAllList, updateQty } from '@/api/waitDispatchDetail'
 import { findBySalesBillSn } from '@/api/dispatch'
+import { keys } from 'core-js/fn/array'
 export default {
   name: 'WaitDispatch',
   mixins: [commonMixin],
@@ -136,7 +137,7 @@ export default {
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
         { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '26%', align: 'center' },
         { title: '产品名称', dataIndex: 'productEntity.name', width: '29%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '出库仓库', dataIndex: 'warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '出库仓库', dataIndex: 'dispatchBill.warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '待下推数量', dataIndex: 'surplusQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '本次下推数', scopedSlots: { customRender: 'salesNums' }, width: '11%', align: 'center' },
         { title: '单位', dataIndex: 'productEntity.unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
@@ -175,11 +176,13 @@ export default {
       findBySalesBillSn({ salesBillSn: this.$route.params.salesBillSn }).then(res => {
         if (res.status == 200) {
           this.totalData = res.data || null
-          this.productForm.dispatchBillSn = res.data.dispatchBillSn
-          const _this = this
-          this.$nextTick(() => {
-            _this.$refs.table.refresh()
-          })
+          if (res.data && Object.keys(res.data).length > 0) {
+            this.productForm.dispatchBillSn = res.data.dispatchBillSn
+            const _this = this
+            this.$nextTick(() => {
+              _this.$refs.table.refresh()
+            })
+          }
         } else {
           this.totalData = null
         }

+ 1 - 1
src/views/salesManagement/waitDispatch/queryPart.vue

@@ -214,7 +214,7 @@ export default {
         { title: '原厂编码', dataIndex: 'productEntity.origCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         // { title: '销售价', dataIndex: 'price', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         // { title: '成本价', dataIndex: 'showCost', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '出库仓库', dataIndex: 'dispatchBill.warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '出库仓库', dataIndex: 'warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '单位', dataIndex: 'productEntity.unit', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '可用库存', dataIndex: 'stockQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '销售数量', dataIndex: 'qty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },