| | |
| | | <el-col :span="6"> |
| | | <el-form-item label="同步数据来源" prop="sourceId"> |
| | | <el-input |
| | | v-model="dataForm.sourceId == 0 ? '同步' : '手动'" |
| | | :value="dataForm.sourceId == 0 ? '外部' : '内部'" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | <!-- <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | ></el-button> |
| | | ></el-button> --> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | this.$refs.dataForm.validate((valid) => { |
| | | if (valid) { |
| | | if (this.dataForm.id) { |
| | | updateCustomerOrderById(this.dataForm) |
| | | .then((data) => { |
| | | updateCustomerOrderById(this.dataForm).then((data) => { |
| | | this.$message.success('修改成功') |
| | | this.visible = false |
| | | this.buttonDisable = false |
| | | this.$emit('refreshDataList', 1) |
| | | }) |
| | | .catch((error) => { |
| | | }).catch((error) => { |
| | | this.buttonDisable = false |
| | | }) |
| | | } else { |
| | | addCustomerOrder(this.dataForm) |
| | | .then((data) => { |
| | | addCustomerOrder(this.dataForm).then((data) => { |
| | | this.$message.success('添加成功') |
| | | this.visible = false |
| | | this.buttonDisable = false |
| | | this.$emit('refreshDataList', 1) |
| | | }) |
| | | .catch((error) => { |
| | | }).catch((error) => { |
| | | this.buttonDisable = false |
| | | }) |
| | | } |