Browse Source

[feat] 供应商清除供应商采购员

dev
zhangsiqi 4 months ago
parent
commit
a23c427ced
  1. 41
      ruoyi-admin/src/main/resources/templates/system/supplier/add.html
  2. 6
      ruoyi-admin/src/main/resources/templates/system/supplier/detail.html
  3. 23
      ruoyi-admin/src/main/resources/templates/system/supplier/edit.html
  4. 6
      ruoyi-admin/src/main/resources/templates/system/supplier/taskCgjlVerify.html
  5. 6
      ruoyi-admin/src/main/resources/templates/system/supplier/taskCgzgVerify.html
  6. 7
      ruoyi-admin/src/main/resources/templates/system/supplier/taskModifyApply.html

41
ruoyi-admin/src/main/resources/templates/system/supplier/add.html

@ -195,12 +195,6 @@
<input name="merchandiserTelephone" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购员:</label>
<div class="col-sm-8">
<select id="purchaseBuyer_add" name="purchaseBuyer" class="form-control" ></select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否含税:</label>
<div class="col-sm-8">
@ -310,41 +304,20 @@
var userName = [[${@permission.getPrincipalProperty('userName')}]];
$("#form-supplier-add").validate({focusCleanup: true});
$(function () {
getPurchaseOrderCode();
})
function getPurchaseOrderCode(){
$.ajax({
url: prefix + "/getId",
type: "post",
dateType: "json",
success: function (resp) {
if (resp.code === 0) {
$("input[name='supplierCode']").val(resp.data);
} else {
$.modal.msgError("失败啦");
}
if (resp.code === 0) {$("input[name='supplierCode']").val(resp.data);}
else { $.modal.msgError("失败啦");}
},
error: function () {
$.modal.msgError("后台出错啦!");
}
error: function () {$.modal.msgError("后台出错啦!");}
});
$.ajax({
url: ctx + 'system/user/list',
type: 'post',
data:{
userName: '业务'
},
success: function (res) {
if (res.rows.length > 0) {
var usertData = res.rows;
for (let i in usertData) {
$("#purchaseBuyer_add").append(
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>");
}
$("purchaseBuyer_add").val(userName).trigger("change");
} else {
$.modal.msgError(res.msg);
}
}
});
})
}
function submitHandler() {
if ($.validate.form()) {

6
ruoyi-admin/src/main/resources/templates/system/supplier/detail.html

@ -203,12 +203,6 @@
<input name="merchandiserTelephone" disabled th:field="*{merchandiserTelephone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购员:</label>
<div class="col-sm-8">
<select id="purchaseBuyer_add" th:field="*{purchaseBuyer}" name="purchaseBuyer" class="form-control" disabled></select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否含税:</label>
<div class="col-sm-8">

23
ruoyi-admin/src/main/resources/templates/system/supplier/edit.html

@ -195,13 +195,6 @@
<input name="merchandiserTelephone" th:field="*{merchandiserTelephone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购员:</label>
<div class="col-sm-8">
<select id="purchaseBuyer_add" name="purchaseBuyer" class="form-control" >
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否含税:</label>
<div class="col-sm-8">
@ -318,22 +311,6 @@
}
$("#form-supplier-edit").validate({focusCleanup: true});
$(function(){
$.ajax({
url: ctx + 'system/user/list',
type: 'post',
success: function (res) {
if (res.rows.length > 0) {
var usertData = res.rows;
for (let i in usertData) {
$("#form-supplier-edit select[name='purchaseBuyer']").append(
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>");
}
$("#form-supplier-edit select[name='purchaseBuyer']").val(sysSupplier.purchaseBuyer).trigger("change");
} else {
$.modal.msgError(res.msg);
}
}
});
$("input[name='confirmFax']").val(sysSupplier.confirmFax);
$("input[name='supplierType']").val(sysSupplier.supplierType);
$("input[name='supplierQualification']").val(sysSupplier.supplierQualification);

6
ruoyi-admin/src/main/resources/templates/system/supplier/taskCgjlVerify.html

@ -231,12 +231,6 @@
<input name="merchandiserTelephone" disabled th:field="*{merchandiserTelephone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购员:</label>
<div class="col-sm-8">
<select id="purchaseBuyer_add" name="purchaseBuyer" class="form-control" disabled></select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否含税:</label>
<div class="col-sm-8">

6
ruoyi-admin/src/main/resources/templates/system/supplier/taskCgzgVerify.html

@ -231,12 +231,6 @@
<input name="merchandiserTelephone" disabled th:field="*{merchandiserTelephone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购员:</label>
<div class="col-sm-8">
<select id="purchaseBuyer_add" name="purchaseBuyer" class="form-control" disabled></select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否含税:</label>
<div class="col-sm-8">

7
ruoyi-admin/src/main/resources/templates/system/supplier/taskModifyApply.html

@ -204,13 +204,6 @@
<input name="merchandiserTelephone" th:field="*{merchandiserTelephone}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">采购员:</label>
<div class="col-sm-8">
<select id="purchaseBuyer_add" name="purchaseBuyer" class="form-control" >
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">是否含税:</label>
<div class="col-sm-8">

Loading…
Cancel
Save