|
@@ -89,7 +89,7 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :md="4" :sm="24" v-else>
|
|
|
+ <!-- <a-col :md="4" :sm="24" v-else>
|
|
|
<a-form-item label="是否为缺货">
|
|
|
<a-select allowClear v-model="productForm.oosFlag" placeholder="请选择是否">
|
|
|
<a-select-option value="1">
|
|
@@ -100,7 +100,7 @@
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
- </a-col>
|
|
|
+ </a-col> -->
|
|
|
<a-col :md="4" :sm="24">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="salesEdit-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 5px" @click="resetForm" id="salesEdit-reset">重置</a-button>
|
|
@@ -640,7 +640,7 @@ export default {
|
|
|
closable: true,
|
|
|
onOk () {
|
|
|
_this.spinning = true
|
|
|
- const params = { id: _this.orderId, oosFlag: flag == 1 ? 1 : undefined, qhFlag: flag == 2 ? 1 : undefined }
|
|
|
+ const params = { id: _this.orderId, oosFlag: !flag ? undefined : 1 }
|
|
|
salesDel(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
_this.getOrderDetail(true)
|
|
@@ -792,6 +792,11 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
vm.detailData = res.data
|
|
|
vm.discountAmountBak = vm.detailData.discountAmount
|
|
|
+ if(res.data.delFlag == 1){
|
|
|
+ vm.$message.info("该销售单已删除")
|
|
|
+ vm.handleBack()
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (flag) {
|
|
|
const buyerSn = (vm.detailData && vm.detailData.buyerSn && vm.detailData.sourceType && vm.detailData.sourceType == 'PURCHASE') ? '' : vm.detailData.buyerSn
|
|
|
const priceType = vm.$route.params.priceType
|