lilei 1 jaar geleden
bovenliggende
commit
4d033739bf

+ 16 - 9
src/views/salesReturnManagement/custConfirm/list.vue

@@ -7,7 +7,7 @@
           <a id="custConfirm-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
           <span style="margin: 0 15px;color: #666;">客户名称:{{ ordeDetail&&ordeDetail.buyerName || '--' }}</span>
           <span style="margin: 0 10px;color: #666;">
-            退货类别:{{ordeDetail&&ordeDetail.goodFlagDictValue}}
+            退货类别:{{ ordeDetail&&ordeDetail.goodFlagDictValue }}
           </span>
         </template>
       </a-page-header>
@@ -30,7 +30,7 @@
           <a-button style="margin-left:5px;" :loading="loading" @click="openPlSetReason">批量设置退货原因</a-button>
           <span style="margin-left:10px;" v-if="selNums">已选{{ selNums }}项</span>
           <a-button type="primary" :loading="loading" class="button-info" @click="setNewSalesRetrunOrder">生成新销退单</a-button>
-          <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
+          <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
         </div>
         <!-- 已选配件列表 -->
         <s-table
@@ -120,11 +120,17 @@
           <!-- 退货原因 -->
           <template slot="returnReason" slot-scope="text, record">
             <returnReason v-if="record.isEdit" v-model="record.returnReasonCode"></returnReason>
-            <span v-else>{{ record.returnReason||'--' }}</span>
+            <span v-else title="退货原因和退货类别不一致" :style="{color:record.needHandleFlag==1?'red':''}">{{ record.returnReason||'--' }}</span>
           </template>
           <!-- 备注 -->
           <template slot="remarks" slot-scope="text, record">
-            <a-input v-if="record.isEdit" size="small" :maxlength="50" v-model.trim="record.returnReasonRemarks" allowClear placeholder="请输入备注信息(最多50字符)"/>
+            <a-input
+              v-if="record.isEdit"
+              size="small"
+              :maxlength="50"
+              v-model.trim="record.returnReasonRemarks"
+              allowClear
+              placeholder="请输入备注信息(最多50字符)"/>
             <span v-else>{{ record.returnReasonRemarks||'--' }}</span>
           </template>
           <!-- 操作 -->
@@ -284,7 +290,7 @@ export default {
     }
   },
   computed: {
-    goodFlag() {
+    goodFlag () {
       return this.ordeDetail && this.ordeDetail.goodFlag || ''
     },
     selNums () {
@@ -336,7 +342,7 @@ export default {
           arr.map(item => {
             snList.push(item.salesReturnDetailSn)
           })
-          salesReturnAgainCreate({ sourceBillSn: _this.orderSn,salesReturnBillDetailSnList: snList }).then(res => {
+          salesReturnAgainCreate({ sourceBillSn: _this.orderSn, salesReturnBillDetailSnList: snList }).then(res => {
             if (res.status == 200) {
               _this.resetSearchForm(false)
             }
@@ -360,6 +366,7 @@ export default {
       const params = {
         'salesReturnBillSn': this.orderSn,
         'salesReturnBillNo': this.ordeDetail.salesReturnBillNo,
+        'goodFlag': this.goodFlag,
         ...data
       }
       insertByCustomerService(params).then(res => {
@@ -411,7 +418,7 @@ export default {
         })
         salesReturnDetailSetReason({
           salesReturnBillDetailSnList: snList,
-          salesReturnBillSn : this.orderSn,
+          salesReturnBillSn: this.orderSn,
           returnReason: rows ? rows.dispName : '',
           returnReasonCode: this.plReturnReason,
           returnReasonRemarks: this.plReturnRemark
@@ -481,8 +488,8 @@ export default {
     getOrderDetail () {
       salesReturnDetail({ sn: this.orderSn }).then(res => {
         this.ordeDetail = res.data || null
-        if(res.data){
-          this.returnReasonlist = [...this.$store.state.app.goodReturnReason,...this.$store.state.app.defectiveReturnReason]
+        if (res.data) {
+          this.returnReasonlist = [...this.$store.state.app.goodReturnReason, ...this.$store.state.app.defectiveReturnReason]
         }
       })
     },

+ 6 - 2
src/views/salesReturnManagement/custConfirm/setPriceModal.vue

@@ -64,7 +64,7 @@
               <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="setPrice-reset">重置</a-button>
             </a-form-item>
           </a-form>
-          <div style="float:right;color:#999;margin-top:10px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
+          <div style="float:right;color:#999;margin-top:10px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
         </div>
         <!-- 表格数据 -->
         <s-table
@@ -78,6 +78,10 @@
           :scroll="{ y: 400 }"
           :showPagination="false"
           bordered>
+          <!-- 退货原因 -->
+          <template slot="returnReason" slot-scope="text, record">
+            <span title="退货原因和退货类别不一致" :style="{color:record.needHandleFlag==1?'red':''}">{{ record.returnReason||'--' }}</span>
+          </template>
         </s-table>
       </div>
     </a-spin>
@@ -138,7 +142,7 @@ export default {
         { title: '返库数量', dataIndex: 'backStockQty', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '退货单价', dataIndex: 'price', align: 'right', width: '10%', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') },
         { title: '退货单价说明', dataIndex: 'priceRemark', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '退货原因', dataIndex: 'returnReason', width: '15%', align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '退货原因', dataIndex: 'returnReason', width: '15%', align: 'center', scopedSlots: { customRender: 'returnReason' } },
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 4 - 4
src/views/salesReturnManagement/receiveCheck/chooseProductsModal.vue

@@ -105,16 +105,16 @@ export default {
       if (!newValue) {
         this.$emit('close')
       } else {
-        if(this.goodFlag == 'DEFECTIVE_PRODUCT_RETURN'){
+        if (this.goodFlag == 'DEFECTIVE_PRODUCT_RETURN') {
           this.returnReasonlist = this.$store.state.app.defectiveReturnReason
         }
         // 良品
-        if(this.goodFlag == 'GOOD_PRODUCT_RETURN'){
+        if (this.goodFlag == 'GOOD_PRODUCT_RETURN') {
           this.returnReasonlist = this.$store.state.app.goodReturnReason
         }
         // 全部
-        if(!this.goodFlag){
-          this.returnReasonlist = [...this.$store.state.app.goodReturnReason,...this.$store.state.app.defectiveReturnReason]
+        if (!this.goodFlag) {
+          this.returnReasonlist = [...this.$store.state.app.goodReturnReason, ...this.$store.state.app.defectiveReturnReason]
         }
         this.$nextTick(() => {
           this.$refs.partQuery.pageInit(this.buyerSn, 0, this.goodFlag)

+ 2 - 2
vue.config.js

@@ -108,9 +108,9 @@ const vueConfig = {
     // If you want to turn on the proxy, please remosve the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.2.111/ocs-admin',
+        // target: 'http://192.168.2.111/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  练习
-        // target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
+        target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
         ws: false,
         changeOrigin: true,
         pathRewrite: {