linwenxin 8 mesi fa
parent
commit
740c745920

+ 2 - 2
src/packageAttachment/pages/applicationParts/applicationPartsForm.vue

@@ -12,7 +12,7 @@
             </view>
             <view class="input_module_as">
               <view class="input_module_as_title"> 所属网点 </view>
-              <view class="input_module_as_en"> {{ form.websitName }} ({{ form.partsWebsitNumber }}) </view>
+              <view class="input_module_as_en"> {{ form.websitName }} ({{ form.partsWebsitId }}) </view>
             </view>
             <view class="input_module_as">
               <view class="input_module_as_title"> *申请类别 </view>
@@ -243,7 +243,7 @@ export default {
   methods: {
     goToChoosingAccessories() {
       this.$navToPage({
-        url: `/packageAttachment/pages/sparePartsInventory/choosingAccessories?apiType=applicationParts&websitId=${this.option.websitId}&websitName=${this.option.websitName}&partsWebsitNumber=${this.option.partsWebsitNumber}`
+        url: `/packageAttachment/pages/sparePartsInventory/choosingAccessories?apiType=applicationParts&websitId=${this.option.websitId}&websitName=${this.option.websitName}&partsWebsitId=${this.option.partsWebsitId}`
       })
     },
     delItem(index) {

+ 3 - 3
src/packageAttachment/pages/applicationParts/index.nvue

@@ -92,9 +92,9 @@ export default {
       })
     },
     toApplicationPartsForm(item) {
-      var { websitId, websitName, partsWebsitNumber } = item
+      var { websitId, websitName, partsWebsitId } = item
       this.$navToPage({
-        url: `/packageAttachment/pages/applicationParts/applicationPartsForm?websitId=${websitId}&websitName=${websitName}&partsWebsitNumber=${partsWebsitNumber}`
+        url: `/packageAttachment/pages/applicationParts/applicationPartsForm?websitId=${websitId}&websitName=${websitName}&partsWebsitId=${partsWebsitId}`
       })
     },
     loadMore() {
@@ -110,7 +110,7 @@ export default {
         websitNumber: this.websit_number
       }
       api.post('/app/buy/websit/list', params).then(res => {
-        this.websitList = this.websitList.concat(res.data.records).filter(item => item.partsWebsitNumber)
+        this.websitList = this.websitList.concat(res.data.records).filter(item => item.partsWebsitId)
         if (this.websitList.length != 0) {
           this.markers = this.websitList.map(item => {
             return {

+ 1 - 1
src/packageAttachment/pages/applyReturnOfNewPiece/index.vue

@@ -278,7 +278,7 @@ export default {
         newRefundManageItemBeanList,
         receiveWebsitId: this.form.websitId,
         receiveWebsitName: this.form.websitName,
-        receivePartsWebsitNumber: this.form.partsWebsitNumber,
+        receivePartsWebsitNumber: this.form.partsWebsitId,
         receiveAddress: this.form.receiveAddr,
         identity: this.idcard
       }

+ 1 - 1
src/packageAttachment/pages/sparePartsInventory/choosingAccessories.vue

@@ -4,7 +4,7 @@
       <view class="pv30" style="background: #fff">
         <search-input @search="search" />
       </view>
-      <view class="pv30 picker-view-bock" v-if="!option.partsWebsitNumber && !option.websitId">
+      <view class="pv30 picker-view-bock" v-if="!option.partsWebsitId && !option.websitId">
         <view class="picker-view">
           <picker
             class="picker-select"

+ 4 - 4
src/packageAttachment/pages/sparePartsInventory/mixins/getData.js

@@ -35,16 +35,16 @@ export default {
   },
   onLoad(option) {
     this.option = option
-    if (!option.partsWebsitNumber && !option.websitId) {
+    if (!option.partsWebsitId && !option.websitId) {
       this.getWebsitInfo()
     }
   },
   computed: {
     accessoriesParams() {
-      if (this.option.partsWebsitNumber && this.option.websitId) {
+      if (this.option.partsWebsitId && this.option.websitId) {
         return {
           identity: this.userInfo.idCard,
-          partsWebsitNumber: this.option.partsWebsitNumber,
+          partsWebsitId: this.option.partsWebsitId,
           websitId: this.option.websitId
         }
       }
@@ -53,7 +53,7 @@ export default {
         return {
           identity: this.userInfo.idCard,
           partsAttr: ['OLD', 'NEW'][this.selected],
-          partsWebsitNumber: data.partsWebsitNumber,
+          partsWebsitId: data.partsWebsitId,
           websitId: data.websitId
         }
       } else {