|
@@ -53,7 +53,10 @@
|
|
<span v-if="basicInfoData&&(basicInfoData.promoStartDate || basicInfoData.promoEndDate)">{{ (basicInfoData&&basicInfoData.promoStartDate) || '--' }} ~ {{ (basicInfoData&&basicInfoData.promoEndDate) || '--' }}</span>
|
|
<span v-if="basicInfoData&&(basicInfoData.promoStartDate || basicInfoData.promoEndDate)">{{ (basicInfoData&&basicInfoData.promoStartDate) || '--' }} ~ {{ (basicInfoData&&basicInfoData.promoEndDate) || '--' }}</span>
|
|
<span v-else>--</span>
|
|
<span v-else>--</span>
|
|
</a-descriptions-item>
|
|
</a-descriptions-item>
|
|
- <a-descriptions-item label="备注">{{ (basicInfoData&&basicInfoData.remark) || '--' }}</a-descriptions-item>
|
|
|
|
|
|
+ <a-descriptions-item label="备注">
|
|
|
|
+ {{ (basicInfoData&&basicInfoData.remark) }}
|
|
|
|
+ <a-icon type="form" title="编辑备注" @click="editRemark = true" style="color: dodgerblue;font-size: 14px;" />
|
|
|
|
+ </a-descriptions-item>
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
</a-collapse>
|
|
</a-collapse>
|
|
@@ -224,6 +227,28 @@
|
|
<print-modal :openModal="openModal" :itemData="basicInfoData" :nowType="nowType" @ok="handleOk" @close="openModal=false" />
|
|
<print-modal :openModal="openModal" :itemData="basicInfoData" :nowType="nowType" @ok="handleOk" @close="openModal=false" />
|
|
<!-- 提交调拨单 -->
|
|
<!-- 提交调拨单 -->
|
|
<dsModal ref="dsModal" :dealerLevel="$route.params.dealerLevel" :openModal="showDsModal" @close="showDsModal=false" @ok="handleSubmit" />
|
|
<dsModal ref="dsModal" :dealerLevel="$route.params.dealerLevel" :openModal="showDsModal" @close="showDsModal=false" @ok="handleSubmit" />
|
|
|
|
+ <!-- 修改基础信息 -->
|
|
|
|
+ <a-modal
|
|
|
|
+ centered
|
|
|
|
+ wrapClassName="allocateBill-editRemark-modal"
|
|
|
|
+ v-if="basicInfoData"
|
|
|
|
+ :footer="null"
|
|
|
|
+ :maskClosable="false"
|
|
|
|
+ title="修改备注"
|
|
|
|
+ v-model="editRemark"
|
|
|
|
+ @cancel="editRemark = false"
|
|
|
|
+ :width="600">
|
|
|
|
+ <a-textarea
|
|
|
|
+ v-model="basicInfoData.remark"
|
|
|
|
+ placeholder="请输入备注(最多120个字符)"
|
|
|
|
+ :maxLength="120"
|
|
|
|
+ :auto-size="{ minRows: 3, maxRows: 5 }"
|
|
|
|
+ />
|
|
|
|
+ <div class="btn-cont">
|
|
|
|
+ <a-button type="primary" id="allocateBill-basicInfo-modal-save" @click="handleEditRemark">保存</a-button>
|
|
|
|
+ <a-button id="allocateBill-basicInfo-modal-back" @click="editRemark = false" style="margin-left: 15px;">取消</a-button>
|
|
|
|
+ </div>
|
|
|
|
+ </a-modal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -247,6 +272,7 @@ export default {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
showDsModal: false,
|
|
showDsModal: false,
|
|
|
|
+ editRemark: false,
|
|
queryParam: {
|
|
queryParam: {
|
|
productCode: '',
|
|
productCode: '',
|
|
productName: '',
|
|
productName: '',
|
|
@@ -352,6 +378,27 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 修改备注
|
|
|
|
+ handleEditRemark () {
|
|
|
|
+ const _this = this
|
|
|
|
+ const params = _this.basicInfoData
|
|
|
|
+ allocateBillSave({
|
|
|
|
+ allocateSn: params.allocateSn,
|
|
|
|
+ targetType: params.targetType,
|
|
|
|
+ targetSn: params.targetSn,
|
|
|
|
+ targetName: params.targetName,
|
|
|
|
+ allocateTypeSn: params.allocateTypeSn,
|
|
|
|
+ remark: params.remark
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ _this.$message.success(res.message)
|
|
|
|
+ _this.getDetail()
|
|
|
|
+ } else {
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ _this.editRemark = false
|
|
|
|
+ },
|
|
// 修改调拨类型
|
|
// 修改调拨类型
|
|
changeAllocateType (val) {
|
|
changeAllocateType (val) {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -360,22 +407,7 @@ export default {
|
|
content: '确定要更改调拨类型吗?',
|
|
content: '确定要更改调拨类型吗?',
|
|
centered: true,
|
|
centered: true,
|
|
onOk () {
|
|
onOk () {
|
|
- const params = _this.basicInfoData
|
|
|
|
- allocateBillSave({
|
|
|
|
- allocateSn: params.allocateSn,
|
|
|
|
- targetType: params.targetType,
|
|
|
|
- targetSn: params.targetSn,
|
|
|
|
- targetName: params.targetName,
|
|
|
|
- allocateTypeSn: params.allocateTypeSn,
|
|
|
|
- remark: params.remark
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- _this.$message.success(res.message)
|
|
|
|
- _this.getDetail()
|
|
|
|
- } else {
|
|
|
|
- _this.spinning = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ _this.handleEditRemark()
|
|
},
|
|
},
|
|
onCancel () {
|
|
onCancel () {
|
|
_this.getDetail()
|
|
_this.getDetail()
|
|
@@ -654,4 +686,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .allocateBill-editRemark-modal{
|
|
|
|
+ .btn-cont{
|
|
|
|
+ text-align: center;
|
|
|
|
+ padding-top: 20px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|