Ver Fonte

修改bug

chenrui há 2 anos atrás
pai
commit
abd43941a5

+ 5 - 3
src/views/customerManagement/customerInfo/edit.vue

@@ -228,10 +228,12 @@ export default {
       const _this = this
       this.$refs.ruleForm.validate(valid => {
         if (valid) {
-          const form = _this.form
-          form.id = this.$route.params.id && this.model == 'page' ? this.$route.params.id : null
+          const form = JSON.stringify(_this.form)
+          const formInfo = JSON.parse(form)
+          delete formInfo.satelliteFlag
+          formInfo.id = this.$route.params.id && this.model == 'page' ? this.$route.params.id : null
           _this.spinning = true
-          custSave(form).then(res => {
+          custSave(formInfo).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
               if (_this.model == 'page') {

+ 2 - 3
src/views/financialManagement/financialCollection/list.vue

@@ -122,11 +122,10 @@
             type="link"
             :loading="loading"
             class="button-error"
-            v-if="(record.settleState == 'UNSETTLE' || record.settleState == 'PART_SETTLED')&&record.satelliteFlag!=1 && $hasPermissions('B_financialCollectionSing')"
+            v-if="(record.settleState == 'UNSETTLE' || record.settleState == 'PART_SETTLED') && $hasPermissions('B_financialCollectionSing')"
             @click="enableFundAccount ? handleSettleAcountPay(record,0) : handleCollectionSing(record)"
             id="financialCollectionList-pay-btn">收款</a-button>
-          <span v-if="!(record.settleState == 'SETTLED' && $hasPermissions('B_financialCollectionDetail')) && !((record.settleState == 'UNSETTLE' || record.settleState == 'PART_SETTLED')&&record.satelliteFlag!=1 && $hasPermissions('B_financialCollectionSing'))">--</span>
-          <!-- satelliteFlag为1,是卫星仓 -->
+          <span v-if="!(record.settleState == 'SETTLED' && $hasPermissions('B_financialCollectionDetail')) && !((record.settleState == 'UNSETTLE' || record.settleState == 'PART_SETTLED') && $hasPermissions('B_financialCollectionSing'))">--</span>
         </template>
       </s-table>
     </a-spin>